home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / netlog-1.02 / extract / doc < prev    next >
Encoding:
Text File  |  1993-04-15  |  1.9 KB  |  62 lines

  1.  
  2. Usage:
  3.  
  4. extract -a             ASCII output (default)
  5.         -b             Binary output
  6.     -n             No reverse hostname lookups on ASCII output
  7.     -h        Print out brief help message
  8.         -e script      Specify script on command line (like sed -e)
  9.     -E script    Specify script on command line
  10.         -f file      Specify script file (like awk -f)
  11.     -F file        Specify script file
  12.         -d file      Specify dump file to read (default stdin)
  13.         -o file      Specify output file (default stdout)
  14.  
  15. Multiple '-e', '-E', '-f' and '-F' options can be given.  They are,
  16. in effect, treated as a single input file.  '-e' and '-f' scripts
  17. are appended to the "input" file, while '-E' and '-F' scripts are
  18. prepended.  Using '-E' or '-F', one can add additional functionality
  19. to extract script files from the command line.
  20.  
  21. If neither -e or -f is given, then it is equivalent to -e '{print}'
  22. which will print all records.
  23.  
  24.  
  25. Script syntax:
  26.  
  27. condition { action ; action ... }
  28.  
  29. Where condition is used to select records for which the set of
  30. actions is to be performed on.  condition can be "" in which case
  31. all records are selected.
  32.  
  33. Actions:
  34.  
  35. print     print the record
  36. next    Skip to next record, start processing at top of script
  37.  
  38.  
  39. Conditionals:
  40.  
  41. net   =, != hostname|ipaddr [/ netmask]
  42. srcnet =, != hostname|ipaddr [/netmask]
  43. dstnet =, != hostname|ipaddr [/netmask]
  44. host =, !=, <, >, <=, >= hostname|ipaddr
  45. srchost =, !=, <, >, <=, >= hostname|ipaddr
  46. dsthost =, !=, <, >, <=, >= hostname|ipaddr
  47. srcport =, !=, <, >, <=, >= service-name|port#
  48. dstport =, !=, <, >, <=, >= service-name|port#
  49. date =, !=, <, >, <=, >= MM/DD/YY | MM/DD | today | yesterday
  50. time =, !=, <, >, <=, >= HH:MM:SS | HH:MM
  51. before MM/DD/YY [HH:MM] | today [HH:MM] | yesterday [HH:MM]
  52. since MM/DD/YY [HH:MM] | today [HH:MM] | yesterday [HH:MM]
  53.  
  54. Connectors:
  55.  
  56. and, &&   Short circuited boolean and
  57. or, ||    Short circuited boolean or
  58. not, !    Unary negation
  59.  
  60. All operators have equal precedence.  Parenthesis can be used
  61. to group subexpressions.
  62.